<?php

namespace App\Console\Commands;

use App\Services\CollectMoneyService;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;

class CollectMoneyEveryMinuteJobs extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'timer:collect-money-every-minute-jobs';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'collect money trade query timer';

    protected $collectMoneyService;

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct(CollectMoneyService $collectMoneyService)
    {
        parent::__construct();
        $this->collectMoneyService = $collectMoneyService;
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        //收银提现对账
        $this->collectMoneyService->tradeQueryJobs();
    }
}
